﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;


namespace VehicleList.Models
{
    public class Vehicle
    {
        public int vehicleId { get; set; }
        public string vehicleYear { get; set; }
        public string vehicleMake { get; set; }
        public string vehicleModel { get; set; }

        public virtual ICollection<VehicleInfo> VehicleInfos { get; set; }
    }

    public class VehicleInfo       
    {
        public int? vehicleInfoId { get; set; }
        public string vehicleInfoDescripton { get; set; }
        public string vehicleInfoFuel { get; set; }
        public string vehicleInfoDrive { get; set; }
        public string vehicleInfoTransmission { get; set; }
        public string vehicleInfoMileage { get; set; }
        public int? vehicleId { get; set; }

        public virtual Vehicle Vehicle { get; set; }
    }
}

